// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const GMenu = imports.gi.GMenu;
this.parent(_("SETTINGS"));
this._appSys = Shell.AppSystem.get_default();
- this._gnomecc = this._appSys.lookup_app('gnome-control-center.desktop');
+ this.appInfo = Gio.DesktopAppInfo.new('gnome-control-center.desktop');
},
getResultMetas: function(prefs, callback) {
let app = resultMeta['id'];
let icon = new AppWellIcon(app);
return icon.actor;
+ },
+
+ launchSearch: function(terms) {
+ // FIXME: this should be a remote search provider
+ this.appInfo.launch([], global.create_app_launch_context());
}
});